using System;
using System.Text;
using FastSpring.Base.Model;
using FastSpring.ValueList.NHibernate;

namespace FastSpring.Core.Model
{
    public class Adapters : BaseVersionModel
    {
        public Adapters()
        { 
        
        }

        private int mAdapterType;
        private string mAdapterName;
        private string mHQL;
        private string mDescription;
        private int mIsRemoveEmptyStrings;


        public AdaptersModel GetAdaptersModel()
        {
            AdaptersModel model = new AdaptersModel();
            model.AdapterName = this.AdapterName;
            model.HQL = this.HQL;
            model.IsRemoveEmptyStrings = this.IsRemoveEmptyStrings == 1;
            return model;
        }

        public int AdapterType
        {
            get {
                return mAdapterType;
            }
            set {
                mAdapterType = value;
            }
        }

        public string AdapterName
        {
            get
            {
                return mAdapterName;
            }
            set
            {
                mAdapterName = value;
            }
        }

        public string HQL
        {
            get
            {
                return mHQL;
            }
            set
            {
                mHQL = value;
            }
        }

        public string Description
        {
            get
            {
                return mDescription;
            }
            set
            {
                mDescription = value;
            }
        }

        public int IsRemoveEmptyStrings
        {
            get
            {
                return mIsRemoveEmptyStrings;
            }
            set
            {
                mIsRemoveEmptyStrings = value;
            }
        }

        public override Type GetEntityType()
        {
           return typeof(Adapters);
        }

        public override bool EqualsID(int ID)
        {
            return this.ID == ID;
        }
    }
}
